﻿using System.Windows.Controls;

namespace Views
{
    /// <summary>
    /// LeftToolsPanel.xaml 的交互逻辑
    /// </summary>
    public partial class WindowBody : Border
    {
        public WindowBody()
        {
            InitializeComponent();
            //this.ChatSelected = true;
        }

        //private bool chatSelected;

        //public bool ChatSelected
        //{
        //    get { return chatSelected; }
        //    set
        //    {
        //        chatSelected = value;
        //        if (value)
        //        {
        //            this.RecentlyContactText.Foreground = (SolidColorBrush)(new BrushConverter().ConvertFromString("#0086ED"));
        //            this.ChatListText.Foreground = (SolidColorBrush)(new BrushConverter().ConvertFromString("#595B5C"));
        //            this.GroupChatListText.Foreground = (SolidColorBrush)(new BrushConverter().ConvertFromString("#595B5C"));

        //            this.RecentlyChatListPanel.SetValue(Panel.ZIndexProperty, 1);
        //            this.ChatListPanel.SetValue(Panel.ZIndexProperty, 0);
        //            this.GroupChatListPanel.SetValue(Panel.ZIndexProperty, 0);
        //        }

        //    }
        //}

        //private bool chatListSelected;

        //public bool ChatListSelected
        //{
        //    get { return chatListSelected; }
        //    set
        //    {
        //        chatListSelected = value;
        //        if (value)
        //        {
        //            this.RecentlyContactText.Foreground = (SolidColorBrush)(new BrushConverter().ConvertFromString("#595B5C"));
        //            this.ChatListText.Foreground = (SolidColorBrush)(new BrushConverter().ConvertFromString("#0086ED"));
        //            this.GroupChatListText.Foreground = (SolidColorBrush)(new BrushConverter().ConvertFromString("#595B5C"));

        //            this.RecentlyChatListPanel.SetValue(Panel.ZIndexProperty, 0);
        //            this.ChatListPanel.SetValue(Panel.ZIndexProperty, 1);
        //            this.GroupChatListPanel.SetValue(Panel.ZIndexProperty, 0);
        //        }
        //    }
        //}

        //private bool groupChatListSelected;

        //public bool GroupChatListSelected
        //{
        //    get { return groupChatListSelected; }
        //    set
        //    {
        //        groupChatListSelected = value;
        //        if (value)
        //        {
        //            this.RecentlyContactText.Foreground = (SolidColorBrush)(new BrushConverter().ConvertFromString("#595B5C"));
        //            this.ChatListText.Foreground = (SolidColorBrush)(new BrushConverter().ConvertFromString("#595B5C"));
        //            this.GroupChatListText.Foreground = (SolidColorBrush)(new BrushConverter().ConvertFromString("#0086ED"));

        //            this.RecentlyChatListPanel.SetValue(Panel.ZIndexProperty, 0);
        //            this.ChatListPanel.SetValue(Panel.ZIndexProperty, 0);
        //            this.GroupChatListPanel.SetValue(Panel.ZIndexProperty, 1);
        //        }
        //    }
        //}

        //private void Chat_Click(object sender, RoutedEventArgs e)
        //{
        //    ChatSelected = true;
        //}

        //private void ChatList_Click(object sender, RoutedEventArgs e)
        //{
        //    ChatListSelected = true;
        //}

        //private void GroupChatList_Click(object sender, RoutedEventArgs e)
        //{
        //    GroupChatListSelected = true;
        //}
    }
}